package com.wto;

import java.util.Scanner;

public class TestTeacherParse
{
	public static void main(String args[])
	{
		String s_id;
		String t_id;
		String check_code;
		CollegeBean collegeBean=new CollegeBean("0001","西安交通大学","http://jw.zzti.edu.cn");
		ParseTeacherHtml parseHtml=new ParseTeacherHtml(collegeBean);
		
		parseHtml.getIndex();
		Scanner scanner=new Scanner(System.in);
		System.out.println("输入学期ID");
		s_id=scanner.next();
		parseHtml.getTeachers(s_id);
		System.out.println("输入教师ID");
		t_id=scanner.next();
		parseHtml.getImage();
		System.out.println("输入验证码");
		check_code=scanner.next();
		Teacher teacher =parseHtml.getTeacher(s_id, t_id, check_code);
//		IUtilSql utilSql=new UtilTeacherSql();
//		utilSql.insert(teacher);
		System.out.println(teacher.toJsonObject());
		scanner.close();
		
	}
}
